/**********
 * Main.h *
 **********/

// !!! KEEP AS MINIMAL AS POSSIBLE !!!

// Contains the things necessary for launching a windows application

// Includes
#include "graphics.h"
#include "engine.h"

int width	= 1280;
int height	= 720;

// Windows stuff
HDC			hDC=NULL;		// Private GDI Device Context
HGLRC		hRC=NULL;		// Permanent Rendering Context
HWND		hWnd=NULL;		// Holds Our Window Handle
HINSTANCE	hInstance;		// Holds The Instance Of The Application

bool	keys[256];				// Array Used For The Keyboard Routine
bool	active		= TRUE;		// Window Active Flag Set To TRUE By Default
bool	fullscreen	= false;	// Are we running in fullscreen?

// GL functions
// These would be in graphics.h but are a pain to port over
void kill_gl_window();
bool create_gl_window(char* title, int width, int height, int bits, bool fullscreenflag);
LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);